/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* @description /
* @author laoxu
* @date 2025-07-04
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("iws_inventory_task_record")
public class InventoryTaskRecordDao implements Serializable {

    @TableId(value = "id")
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "任务单号")
    private String taskId;

    @ApiModelProperty(value = "任务状态")
    private Integer taskStatus;

    @ApiModelProperty(value = "盘点类型（全盘，抽盘，动碰盘）")
    private String inventoryType;

    @ApiModelProperty(value = "载具码")
    private String containerCode;

    @ApiModelProperty(value = "物料条码")
    private String itemBarCode;

    @ApiModelProperty(value = "仓库")
    private String floor;

    @ApiModelProperty(value = "建单账号")
    private String createName;

    @ApiModelProperty(value = "建单时间")
    private Timestamp createDate;

    @ApiModelProperty(value = "开始时间")
    private Timestamp startDate;

    @ApiModelProperty(value = "完成时间")
    private Timestamp completeDate;

    @ApiModelProperty(value = "物料编号")
    private String materialCode;

    @ApiModelProperty(value = "物料名称")
    private String materialName;

    @ApiModelProperty(value = "入厂时间")
    private Timestamp entryTime;

    @ApiModelProperty(value = "物料数量")
    private Float inventoryQuantity;

    @ApiModelProperty(value = "盘点账号")
    private String startName;

    public void copy(InventoryTaskRecordDao source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
